package cn.stylefeng.guns.modular.recy.vo.json;

public class Device
{
    private Long id;
    private String deviceModelName;
    private Long maxPrice;
    private String brandInfo;
    
    public Long getId() {
        return this.id;
    }
    
    public String getDeviceModelName() {
        return this.deviceModelName;
    }
    
    public Long getMaxPrice() {
        return this.maxPrice;
    }
    
    public String getBrandInfo() {
        return this.brandInfo;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setDeviceModelName(final String deviceModelName) {
        this.deviceModelName = deviceModelName;
    }
    
    public void setMaxPrice(final Long maxPrice) {
        this.maxPrice = maxPrice;
    }
    
    public void setBrandInfo(final String brandInfo) {
        this.brandInfo = brandInfo;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Device)) {
            return false;
        }
        final Device other = (Device)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$deviceModelName = this.getDeviceModelName();
        final Object other$deviceModelName = other.getDeviceModelName();
        Label_0102: {
            if (this$deviceModelName == null) {
                if (other$deviceModelName == null) {
                    break Label_0102;
                }
            }
            else if (this$deviceModelName.equals(other$deviceModelName)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$maxPrice = this.getMaxPrice();
        final Object other$maxPrice = other.getMaxPrice();
        Label_0139: {
            if (this$maxPrice == null) {
                if (other$maxPrice == null) {
                    break Label_0139;
                }
            }
            else if (this$maxPrice.equals(other$maxPrice)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$brandInfo = this.getBrandInfo();
        final Object other$brandInfo = other.getBrandInfo();
        if (this$brandInfo == null) {
            if (other$brandInfo == null) {
                return true;
            }
        }
        else if (this$brandInfo.equals(other$brandInfo)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof Device;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $deviceModelName = this.getDeviceModelName();
        result = result * 59 + (($deviceModelName == null) ? 43 : $deviceModelName.hashCode());
        final Object $maxPrice = this.getMaxPrice();
        result = result * 59 + (($maxPrice == null) ? 43 : $maxPrice.hashCode());
        final Object $brandInfo = this.getBrandInfo();
        result = result * 59 + (($brandInfo == null) ? 43 : $brandInfo.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "Device(id=" + this.getId() + ", deviceModelName=" + this.getDeviceModelName() + ", maxPrice=" + this.getMaxPrice() + ", brandInfo=" + this.getBrandInfo() + ")";
    }
    
    public Device() {
    }
    
    public Device(final Long id, final String deviceModelName, final Long maxPrice, final String brandInfo) {
        this.id = id;
        this.deviceModelName = deviceModelName;
        this.maxPrice = maxPrice;
        this.brandInfo = brandInfo;
    }
}
